import { get, post } from '@/config/request'

/**
 * 产品分类
 */

export const getcategory =() => get('/category');
// export const login = p => post('/login', p, { login: false });//es6写法 同下功能一致

export function getproducts(data) {
    return get("/products", data);
  }
  export function getProductDetail(id) {
    return get("/product/detail/" + id, {}, { login: false });
  }